package com.juyu.miliao.api.controller;

import com.juyu.miliao.api.domain.BuyLimit;
import com.juyu.miliao.api.service.BuyLimitService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @ClassName: BuyLimitController
 * @Description: TODO
 * @Author zhangcheng
 * @Date 19-9-12下午3:16
 */
@RestController
public class BuyLimitController {
    @Resource
    private BuyLimitService buyLimitService;

    @GetMapping("/buyLimit")
    public List<BuyLimit> listBuyLimit() {
        return buyLimitService.listBuyLimit(LocalDateTime.now(), 1);
    }



}
